package com.czp.infosharingplatformapp.service;

import com.czp.infosharingplatformapp.model.User;

import java.util.List;

public interface UserService {
    User register(User user);  // 用户注册
    User login(String username, String password); // 用户登录
    void initRoles();
    boolean usernameExists(String username);  // 检查用户名是否存在
    User getUserById(Long userId);
    List<User> getAllUsers();
    String deleteUser(Long id);
}